---
title: ThinkPad X220/X220T internal/external flashing
x-toc-enable: true
...
INTERNAL FLASH 
--------------
X220 does not support flash via software(internal) method running on non-free lenovo bios. 
But if you have already run coreboot/osboot on your X220, then you can flash it with software(internal) method.
You need to boot with a kernel parameter iomem=relaxed
And when you boot into your GNU/Linux os you can update/flash other coreboot/osboot rom with flasrom.

First you need to know the model of your chip.
This can only be done by disassembling the laptop and looking at the markings on the chip
See [coreboot docs](https://www.coreboot.org/Board:lenovo/x220) for how to disassemble this machine to reveal the flash chips.
After you know the chip model you need to run this to list chip models:
    flasrom -p internal
Copy the name of the chip and paste it in CHIPNAME and type romfile name in ROMNAME:
    flasrom -p internal -c CHIPNAME -w ROMNAME
Wait until the flashing ends and if it completed without errors, turn off your laptop by long pressing the power button

Boot it!
--------

EXTERNAL FLASH
--------------
We don't currently have disassembly instructions for this board.
See [coreboot docs](https://www.coreboot.org/Board:lenovo/x220) for how to disassemble this machine to reveal the flash chips.
Refer to [spi.md](spi.md) for how to re-flash externally.
